import dict from './dict';

export { STORAGE_NAMES, STORAGE_SAVE_ALWAYS } from './storage-config';

const common = {
  COMMON_YES_NO: [
    { label: '否', value: '0' },
    { label: '是', value: '1' },
  ],
  COMMON_GENDER: [
    { label: '👧 女', value: '0' },
    { label: '🧑 男', value: '1' },
  ],
  COMMON_MENU_TYPE: [
    { label: '目录', value: 'dir', mode: 'text', status: 'success' },
    { label: '路径', value: 'path', mode: 'text', status: 'warning' },
    { label: '按钮', value: 'button', mode: 'text', status: 'info' },
  ],
};

const file = {
  FILE_TYPE: [
    { icon: 'typeImage', label: '图片', value: 'image' },
    { icon: 'typeDocument', label: '文档', value: 'document' },
    { icon: 'typePackage', label: '压缩', value: 'package' },
    { icon: 'typeAudio', label: '音频', value: 'audio' },
    { icon: 'typeVideo', label: '视频', value: 'video' },
    { icon: 'typeApplication', label: '程序', value: 'application' },
    { icon: 'typeOther', label: '其它', value: 'other' },
  ],
  FILE_VIEW_TYPE: [
    { icon: 'previewSmall', value: 'small' },
    { icon: 'previewLarge', value: 'normal' },
    { icon: 'previewlist', value: 'list' },
  ],
};

export default {
  ...dict,
  ...file,
  ...common,
};
